package com.nhncorp.pleiades.client;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class LockUserInfo {

  private String hostName;
  private String serviceName;
  boolean readOnly = false;

  public LockUserInfo(String serviceName) {
    this.serviceName = serviceName;
    try {
      this.hostName = InetAddress.getLocalHost().getHostName();
    } catch (UnknownHostException e) {
      e.printStackTrace();
    }
  }

  public LockUserInfo(String serviceName, String hostName) {
    this.serviceName = serviceName;
    this.hostName = hostName;
  }

  public String getHostName() {
    return hostName;
  }

  public void setHostName(String hostName) {
    this.hostName = hostName;
  }

  public String getServiceName() {
    return serviceName;
  }

  public void setServiceName(String serviceName) {
    this.serviceName = serviceName;
  }

  public boolean isReadOnly() {
    return readOnly;
  }

  public void setReadOnly(boolean readOnly) {
    this.readOnly = readOnly;
  }

}

